ReadOnlyDictionaryBase Generic Class

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

ReadOnlyDictionaryBase is a base class that can be used to more easily implement the generic IDictionary<T> and non-generic IDictionary interfaces.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
[SerializableAttribute]
public abstract class ReadOnlyDictionaryBase<TKey, TValue> : ReadOnlyCollectionBase<KeyValuePair<TKey, TValue>>, IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IDictionary, ICollection, IEnumerable
Visual Basic (Declaration)
<SerializableAttribute> _
Public MustInherit Class ReadOnlyDictionaryBase(Of TKey, TValue) _
	Inherits ReadOnlyCollectionBase(Of KeyValuePair(Of TKey, TValue)) _
	Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)),  _
	IEnumerable(Of KeyValuePair(Of TKey, TValue)), IDictionary,  _
	ICollection, IEnumerable
Visual C++
[SerializableAttribute]
generic<typename TKey, typename TValue>
public ref class ReadOnlyDictionaryBase abstract : public ReadOnlyCollectionBase<KeyValuePair<TKey, TValue>>, 
	IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, 
	IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, 
	IEnumerable

Type Parameters

TKey
The key type of the dictionary.
TValue
The value type of the dictionary.

Remarks

To use ReadOnlyDictionaryBase as a base class, the derived class must override Count, TryGetValue, GetEnumerator.

Inheritance Hierarchy

System..::Object
  Wintellect.PowerCollections..::ReadOnlyCollectionBase<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
    Wintellect.PowerCollections..::ReadOnlyDictionaryBase<(Of <TKey, TValue>)>

See Also